FROM python:3.9
RUN mkdir /usr/src/django_year6_class7
COPY . /usr/src/django_year6_class7
WORKDIR /usr/src/django_year6_class7
RUN pip install -r requirements.txt -i  https://mirrors.aliyun.com/pypi/simple/
RUN chmod +x migrate.sh && ./migrate.sh
CMD python manage.py runserver 0:8000
